import api from './apiUrl'
import { fetchPost } from '@/server/request'

export async function handleUserLogin (parameter) {
  const res = await fetchPost(api.userLogin, parameter)
  return res
}
export async function handleUserList (parameter) {
  const res = await fetchPost(api.userList, parameter)
  return res
}
export async function handleUserReset (parameter) {
  const res = await fetchPost(api.userReset, parameter)
  return res
}
export async function handleUserChange (parameter) {
  const res = await fetchPost(api.userChange, parameter)
  return res
}
export async function handleUserStatus (parameter) {
  const res = await fetchPost(api.userStatus, parameter)
  return res
}
export async function handleBannerList (parameter) {
  const res = await fetchPost(api.bannerList, parameter)
  return res
}
export async function handleBannerUpdate (parameter) {
  const res = await fetchPost(api.bannerUpdate, parameter)
  return res
}
export async function handleBannerStatusUpdate (parameter) {
  const res = await fetchPost(api.bannerStatusUpdate, parameter)
  return res
}
export async function handleBannerDetail (parameter) {
  const res = await fetchPost(api.bannerDetail, parameter)
  return res
}
export async function handleUserUpdate (parameter) {
  const res = await fetchPost(api.userUpdate, parameter)
  return res
}
